chrome.devtools.panels.elements.createSidebarPane(
    'Selector',
    function (sidebar) {
        // It fires if I'm selecting a specific DOM element via the elements panel the first time
        // It won't fire if I'm selecting the same DOM element again
        chrome.devtools.panels.elements.onSelectionChanged.addListener(() => {
            chrome.devtools.inspectedWindow.eval('window?.onSelectionChanged && window.onSelectionChanged()')
        })
    }
)
